FacebookTwitterLinkedInA snippet to return the php physical file name that is called from: <?php $fileName = basename($_SERVER['PHP_SELF']); echo fileName; ?> Happy coding!!! Related Snippets Get Image Height and Width using PHP Get Current Page URL using PHP Get Local IP Address using PHP